body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    padding: 20px;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 10px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    color: #003366;
    margin-bottom: 5%;
}

.form-group {
    margin-bottom: 2%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

label {
    font-size: 15px;
    font-weight: bold;
    color: #282727;
    margin-right: 10px;
    text-align: right;
    width: 200px;
    min-width: 120px; 
}

input[type="text"],
input[type="date"],textarea,
select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fafafa;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box; 
}

#court_of {
    max-width: 115px;
    margin-right: 1%;
}

#court_of_Name {
    width: 280px;
    max-width: 280px; 
    box-sizing: border-box; 
}
#reset {
    background-color: #293789;
    background: linear-gradient(#003366, #0656a5);
    color: white;
    font-size: 14px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 50%;
}
#back_btn{
    text-decoration:none;
    text-align:center;
}
.buttons{
    display:flex;
    justify-content:space-around;
}
input[type="submit"],input[type="reset"], #back_btn {
    background: linear-gradient(#003366, #0656a5);
    color: white;
    font-size: 14px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 30%;
    text-align: center;
}

.form-group.checkboxes {
    text-align: center;
    justify-content: center;
    margin-bottom: 4%;
}

#custom_purpose_of_filing {
    display: none;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fafafa;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin-top: 10px; 
}

 textarea::placeholder {
    font-family: 'Arial', sans-serif;
    font-size:14.5px;
  }
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    .buttons{
        flex-direction:row;
    }
    .form-group.checkboxes{
          flex-direction:row;
        
    }
    label {
        width: 100%;
        margin-bottom: 1%;
        text-align: left  ;
    }

    input[type="text"],
    input[type="date"],
    select {
        max-width: 100%;
        width: 100%;
        margin-bottom: 3%;
    }
    #court_of {
        max-width: 100%;
        margin-right: 1%;
    }
    #court_of_Name {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box; 
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 20px;
        margin-bottom: 8%;

    }

    input[type="submit"] {
        padding: 12px;
    }
     
   
   
}
